<!--
 * @Description: 文化遗产页面(主要展示文化遗产的分类)
 * @Author: Gaq
 * @Date: 2022-10-16 17:15:21
 * @LastEditTime: 2022-11-02 10:27:05
 * @LastEditors: Gaq
-->
<script setup>
import router from "@/router";

const toHeritage = () => {
  router.push({
    path: "/heritage",
  });
};
</script>

<template>
  <div class="box">
    <div class="container">
      <div class="classifyCard" @click="toHeritage">
        <img src="@/static/image/words.png" alt="" />
        <span>民间文学</span>
      </div>
      <div class="classifyCard" @click="toHeritage">
        <img src="@/static/image/music.png" alt="" />
        <span>传统音乐</span>
      </div>
      <div class="classifyCard" @click="toHeritage">
        <img src="@/static/image/dance.png" alt="" />
        <span>传统舞蹈</span>
      </div>
      <div class="classifyCard" @click="toHeritage">
        <img src="@/static/image/drama.png" alt="" />
        <span>传统戏剧</span>
      </div>
    </div>
    <div class="container" @click="toHeritage">
      <div class="classifyCard">
        <img src="@/static/image/art.png" alt="" />
        <span>传统美术</span>
      </div>
      <div class="classifyCard" @click="toHeritage">
        <img src="@/static/image/skill.png" alt="" />
        <span>传统技艺</span>
      </div>
      <div class="classifyCard" @click="toHeritage">
        <img src="@/static/image/doctor.png" alt="" />
        <span>传统医药</span>
      </div>
      <div class="classifyCard" @click="toHeritage">
        <img src="@/static/image/tiyu.png" alt="" />
        <span>传统体育、游艺与杂技</span>
      </div>
    </div>
  </div>
</template>

<style lang="less" scoped>
.box {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  position: absolute;
  top: 0;
  left: 0;
  background-color: rgb(189, 228, 215);
  width: 100%;
  height: 100%;
}
.container {
  /* margin-top: 110px; */
  display: flex;
  justify-content: space-around;
}
.classifyCard {
  cursor: pointer;
  height: 200px;
  background-color: rgb(181, 188, 193);
  border: 1px solid #fff;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  -webkit-transform: perspective(1px) translateZ(0);
  transform: perspective(1px) translateZ(0);
  box-shadow: 0 0 1px rgba(0, 0, 0, 0);
  -webkit-transition-duration: 0.3s;
  transition-duration: 0.3s;
  -webkit-transition-property: box-shadow, transform;
  transition-property: box-shadow, transform;
  img {
    width: 150px;
    height: 150px;
  }
  span {
    margin-top: 15px;
    text-align: center;
  }
}
.classifyCard:hover,
.classifyCard:focus,
.classifyCard:active {
  box-shadow: 0 10px 10px -10px rgba(0, 0, 0, 0.5);
  -webkit-transform: scale(1.1);
  transform: scale(1.1);
}
</style>